/*
 * Copyright 2018 the original author or authors.
 * 
 * you can use the file or import project.but Do not take legal responsibility.
 * Only for learning communication.
 *
 * Java compiled version 1.8 or higher
 * 
 * 
 * 
 * 
 */
package org.liang.downimage.util;

import java.io.IOException;
import java.io.OutputStream;

/**
 * 输出配置工具
 * @author houliang
 * @date 2018年1月27日
 */
public class MultiOutputStream extends OutputStream {

	OutputStream output1;
	OutputStream output2;

	public MultiOutputStream(OutputStream output1, OutputStream output2) {
		this.output1 = output1;
		this.output2 = output2;
	}

	@Override
	public void write(int b) throws IOException {
		output1.write(b);
		output2.write(b);
	}

}
